var index = {};

index.userInfo = {};

index.iframeResize = function(size) {
    $('#iframe_ele').css('height', size + "px");
}

index.itemInit = function() {
    $('#company_item').click(function(){
        $('#iframe_ele').attr('src', "company_info.html?userid=" + $('#userid').val());
    });
    $('#spread_item').click(function(){
    	$('#iframe_ele').attr('src', "spread_list.html?userid=" + $('#userid').val());
    });
    $('#quit_item').click(function(){
        window.location = "login.jsp";
    });
}

index.init = function() {
    index.itemInit();
}

$(document).ready(function() {
    index.init();
});
